﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;

namespace 高频打印
{
    class helper
    {
        public static string currloginuserid;
        public static msg getproreturn(string result)
        {
            msg m = new msg();
            try
            {
                m = Newtonsoft.Json.JsonConvert.DeserializeObject<msg>(result);
            }catch(Exception e){

            }
            return m;
        }

        public static string getlisttojson(List<goods> list)
        {
            string json = "";
            try
            {
                json = Newtonsoft.Json.JsonConvert.SerializeObject(list);
            }
            catch (Exception e)
            {

            }
            return json;
        }
    }
}
